<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>template</title>
    <script src="../../lib/angularjs/angular.min.js"></script>
    <script src="../../lib/angularjs/angular-route.min.js"></script>
</head>
<body>
    <div ng-app="route.app01">
        <ul>
            <li>
                <a href="#/">首页</a>
                <a href="#/org">机构</a>
                <a href="#/user">用户</a>
                <a href="#/role">角色</a>
                <a href="#/authority">权限</a>
            </li>
        </ul>
        <div ng-view></div>
        <script>
            if(typeof route=="undefined"){
                route={};
            }
            route.app01=angular.module('route.app01',['ngRoute']);
            route.app01.config(['$routeProvider', function($routeProvider){
                $routeProvider
                    .when('/',{template:"这是首页"})
                    .when('/org',{template:'机构'})
                    .when('/user',{template:'用户'})
                    .when('/role',{template:'角色'})
                    .when('/authority',{template:'权限'})
                    .otherwise({redirectTo:'/'});
            }]);
        </script>
    </div>
</body>
</html>